package com.um.pasantiaum.objetos;

import com.parse.ParseUser;

public class Camion {
	
	private String mName, mUserId, mEmail;
	private boolean isActive, isTruck;
	

	public boolean isTruck() {
		return isTruck;
	}

	public String getName() {
		return mName;
	}

	public void setName(String name) {
		mName = name;
	}

	public String getUserId() {
		return mUserId;
	}

	public void setUserId(String userId) {
		mUserId = userId;
	}
	

	public String getEmail() {
		return mEmail;
	}

	public void setEmail(String email) {
		mEmail = email;
	}
	
	

	public void setTruck(boolean isTruck) {
		this.isTruck = isTruck;
	}

	public Camion(String name, String userId, String email) {
		super();
		mName = name;
		mUserId = userId;
		mEmail = email;
		isTruck = true;
	}

	public Camion(ParseUser po){
		mName = po.getString("nombre");
		mUserId = po.getObjectId();
		mEmail = po.getString("username");
		isTruck = true;
	}

}
